<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:define name="title">
	<h:outputText value="#{lang.NEW_COLLABORATOR}" />
</ui:define>

<body>
	<ui:composition template="layout.xhtml">
		<ui:define name="menuHeader">
			<h:outputText value="#{lang.ADMINISTRATION}" />
		</ui:define>
		<ui:define name="menuBody">
			<ui:include src="adminMenu.xhtml"></ui:include>
		</ui:define>
		<ui:define name="contentHeader">
			<h:outputText value="#{lang.NEW_PROJECT}" />
		</ui:define>
		<ui:define name="contentBody">
			<br />
			<h:form>
				<fieldset class="tool-fieldset">
					<table cellpadding="0" cellspacing="12" border="0" width="500">
						<h:form>
							<tr>
								<td class="auth-label" width="200"><h:outputText
										value="#{lang.NAME}" /></td>
								<td align="left"><p:inputText id="name" size="10"
										styleClass="fields"
										value="#{toolsBean.newTool.name}"
										required="true">
									</p:inputText> <h:message for="name" /></td>
							</tr>
							<tr>
								<td class="auth-label" width="200"><h:outputText
										value="#{lang.PROCESS_NAME}" /></td>
								<td align="left">
								<p:inputText id="processName" size="10"
										styleClass="fields"
										value="#{toolsBean.newTool.processName}"
										required="true">
									</p:inputText> <h:message for="processName" /></td>
							</tr>
							<tr>
								<td class="auth-label" width="200"><h:outputText
										value="#{lang.DOMAIN}" /></td>
								<td align="left"><p:selectOneMenu id="domain"
										value="#{toolsBean.newTool.domain}">
										<f:selectItems value="#{domainBean.domainValues}" var="domain"
											itemValue="#{rule}" itemLabel="{lang[domain]}" />
									</p:selectOneMenu> <h:message for="domain" /></td>
							</tr>
							<tr>
							<td colspan="2"><h:commandButton value="#{lang.ADD}"
										process="@this" action="#{toolsBean.addTool}"></h:commandButton>
										
							
							<h:commandButton value="#{lang.CANCEL}" ></h:commandButton></td>
							</tr>
						</h:form>
					</table>
				</fieldset>
			</h:form>
			<br />
			<br />
			<br />
			<br />
		</ui:define>

	</ui:composition>
</body>
</html>